package huawei;
/*
* @Author: wanghongfucoder
* @Date:   2017-06-28 10:55:17
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-06-28 10:55:37
*/

import java.util.*;  
  
public class GetLCM {  
  
    public static void main(String[] args) {  
        Scanner scan = new Scanner(System.in);  
        int a = scan.nextInt();  
        int b = scan.nextInt();  
          
        int mod = a % b;  
        if(mod == 0)  
            System.out.println(a);  
//  
        int out =  getMaxMult(a,b);  
        int result = a*b/out;  
        System.out.println(result);  
    }  
    /**
     * 最小公倍数
     * @param  a [description]
     * @param  b [description]
     * @return   [description]
     */
      
    private static int getMaxMult(int a, int b) {  
        int m = a % b;  
        while (m != 0) {  
            a = b;  
            b = m;  
            m = a % b;  
        }  
        return b;  
    }  
  
}  